9191d92d4533b080c929b65c9cdee558ad55ee8e,src/main/java/com/fasterxml/jackson/module/jaxb/JaxbAnnotationIntrospector.java,JaxbAnnotationIntrospector,findNameForDeserialization,#Annotated#,1194
Before Change
return null;
}
PropertyName name = findJaxbPropertyName(af, af.getRawType(), null);
/* This may seem wrong, but since JAXB field auto-detection
* needs to find even non-public fields (if enabled by
* JAXB access type), we need to return name like so:
*/
// 31-Oct-2014, tatu: As per [jaxb-annotations#31], need to be careful to indicate "use default"
// and NOT to force use of specific name; latter would establish explicit name
// and what we want is implicit (unless there is real explicitly annotated name)
if (name == null) {
return PropertyName.USE_DEFAULT;
}
return name;
After Change
}
if (a instanceof AnnotatedField) {
AnnotatedField af = (AnnotatedField) a;
return isVisible(af)
? findJaxbPropertyName(af, af.getRawType(), null)
: null;
}
return null;
}